package com.smitish.vueblog.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smitish.vueblog.entity.Collection;
import com.smitish.vueblog.mapper.CollectionMapper;
import com.smitish.vueblog.service.CollectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smitish.vueblog.vo.CollectionBlogVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Smitish
 * @since 2020-12-03
 */
@Service
public class CollectionServiceImpl extends ServiceImpl<CollectionMapper, Collection> implements CollectionService {

    @Override
    public Page<CollectionBlogVO> getCollectionBlog(Page<CollectionBlogVO> page, Long id, Long type) {
        return page.setRecords(this.baseMapper.getCollectionBlog(page, id, type));
    }
}
